<%@page import="com.mmy.domain.permissionmenu.TConstMenu"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>菜单管理</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>系统设置</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				
				
		<form action="savecreatemenu" method="post" >
			<div >
				<h4 class="info-h4">
					<i class="fa fa-caret-right" aria-hidden="true" ></i>新建菜单信息
				</h4>
			<table class="info-table">
				<tr>
					<th>上级菜单</th>
					<td>
						<select class="input-select-vlign" name="UpMenuID" onchange="upMenuIDChange(this.options[this.options.selectedIndex].value)">
								<option style="display: none;">请选择</option>
								<option value="0">顶级菜单</option>
							<c:forEach var="lstConstMenu" items="${lstConstMenu}">
								<option value="${lstConstMenu.getMenuID()}">${lstConstMenu.getMenuName()}</option>
							</c:forEach>	
						</select><span class="mustWrite">*</span> 
					</td>
					<th>前后台标识</th>
					<td>
						<select class="input-select-vlign" name="State" id="State">
										<option style="display: none;" value = "0">请选择</option>
										<option value="1">前台</option>		
										<option value="2">后台</option>															
										<option value="3">默认</option>	
						</select><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					<th>菜单名称</th>
					<td>
						<input type="text" name="MenuName" maxlength="50" required/><span class="mustWrite">*</span>
					</td>
					<th>菜单url</th>
					<td>
						<input type="text" name="Url" maxlength="300" required/><span class="mustWrite">*</span>
					</td>
				</tr>
				<tr>
					
					<th>菜单类型</th>
					<td>
						<select class="input-select-vlign" name="Type" id="Type">
										<option style="display: none;">请选择</option>
										<option value="0">子菜单</option>		
										<option value="1">顶级菜单</option>															
										<option value="2">操作链接</option>	
						</select><span class="mustWrite">*</span> 
					</td>
					
				</tr>
				<tr>
					<th>备注</th>
					<td colspan="4">
						<textarea name="Memo" maxlength="256" ></textarea>
					</td>
				</tr>	
			</table>
			<center>
				<input type="submit" class="btn" value="保存" />
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			
		
		</form>
				
			
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>